package com.wisecoach.gatewayplus.spring.boot.autoconfigure.event;

import com.wisecoach.gatewayplus.event.FilteredBlockSourceInfo;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

import java.util.Map;

/**
 * {@code @author:} wisecoach
 * {@code @date:} 2023/6/15 下午4:18
 * {@code @version:} 1.0.0
 */

@ConfigurationProperties(GatewayPlusEventProperties.prefix)
public class GatewayPlusEventProperties {

    public static final String prefix = "fabric.gatewayplus.event";

    @NestedConfigurationProperty
    private Map<String, FilteredBlockSourceInfo> blockSources;

    public Map<String, FilteredBlockSourceInfo> getBlockSources() {
        return blockSources;
    }

    public void setBlockSources(Map<String, FilteredBlockSourceInfo> blockSources) {
        this.blockSources = blockSources;
    }
}
